package com.hoas.quickstart.threads.chapter01.chapter01_2_1;

public class FirstThreadName {

    public static void main(String[] args) {
        System.out.printf("线程名：%s \n", Thread.currentThread().getName());
        System.out.printf("线程优先级: %s \n" ,Thread.currentThread().getPriority());
        System.out.printf("线程ID: %s \n" ,Thread.currentThread().getId());
        System.out.printf("线程状态: %s \n" ,Thread.currentThread().getState());
        System.out.printf("线程组: %s \n" ,Thread.currentThread().getThreadGroup());


    }

}
